package com.dengyuanke.strategypattern;

import java.math.BigDecimal;

/**
 * Created by dengyuanke on 2017/8/24.
 * 银牌会员
 */
public class SilverMember implements MemberStrategy{
    @Override
    public BigDecimal price(BigDecimal price) {
        System.out.println("银牌会员打8折");
        return price.multiply(new BigDecimal(0.8));
    }
}
